<?php
session_start();

require_once ("../CONFIG.config");
if(isset($_SESSION['admin_id']) && $_GET['task'] == base64_encode('logout')) {	
	session_unregister('admin_id');
	session_unregister('adminFname');
	session_unregister('adminLname');
} else if(isset($_SESSION['admin_id'])) {
	header("Location: adminview.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Officesupplies.lk</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
<link rel="stylesheet" href="css/busybox.css" type="text/css"/>
<link rel="stylesheet" href="css/jqpopup.css" type="text/css"/>
<link rel="stylesheet" href="css/jquery-ui.css" type="text/css"/>
<script type="text/javascript" src="jquery-1.4.1.min.js"></script>
 <link rel="stylesheet" media="screen" type="text/css" href="jquery-ui.css" />
 <script type="text/javascript" src="jquery-ui.min.js"></script>
 <script type="text/javascript"></script>

<script language="javascript" type="text/javascript" src="js/jquery-1.4.1.min.js"></script>
   <script charset="utf-8" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" id="js-jquery15"></script>
<script language="javascritp" type="text/javascript" src="js/jquery.pngFix.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );
});
</script>
<script language="javascript" type="text/javascript" src="js/jquery.busybox.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.jqpopup.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.bgiframe.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jqDnR.min.js"></script>
<!--<script language="javascript" type="text/javascript" src="js/script.js"></script>-->
<?php include "js/script.js.php"; ?>
</head>
<body id="login-bg"> 
 
<!-- Start: login-holder -->
<div id="login-holder">

	<!-- start logo -->
	<div id="logo-login"><?php //echo SITENAME; ?></div>
	<!-- end logo -->
	
	<div class="clear"></div>
	
	<div id="loader_area"></div>
	<!--  start loginbox ................................................................................. -->
	<div id="loginbox">
	
	<!--  start login-inner -->
	
	<input type="text" id="txtUsername" name="txtUsername" value="" class="login_txtbox" style="margin: 36px 0 0 110px;" />	
	<input type="password" id="txtPassword" name="txtPassword" value="" class="login_txtbox login_box_margin" />
	
	<div id="login_title_right">Control Panel</div>
	<div id="login_right_pane">
		<div id="login_right_image">
		<img src="images/shared/password-icon.png" width="64" height="64" />
		</div>
		<div class="login_text_right">Welcome to <?php echo SITENAME; ?>. Please login with administrator username and password</div>
	</div>
	<!--  end login-inner -->
<div class="clear"></div>
	
		<a href="" class="forgot-pwd">Forgot Password?</a>
		 <div id="signin_btn" class="cursor" onclick="initiateUser();">Sign In</div>
 </div> 

 <!--  end loginbox -->
</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- End: login-holder -->
</body>
</html>